package com.example.archivemanagement.common;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum OperationType {
    VISIT(1, "访问"),
    VIEW(2, "查阅"),
    DOWNLOAD(3, "上传");

    @EnumValue
    private final int value;
    private final String desc;

    OperationType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }
}